package com.springcloud.alibaba.servicce.impl;

import com.springcloud.alibaba.dao.StorageDao;
import com.springcloud.alibaba.servicce.StorageService;
import com.springcloud.configclient.commons.entities.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StorageServiceImpl implements StorageService {

    @Autowired
    private StorageDao dao;

    public int  decreseStorage(long productId, Integer count) {

        return dao.decreseStorage( productId, count);
    }
}
